from django.db import models
from django.conf import settings
from django.template.defaultfilters import slugify
import mimetypes


# Create your models here.
class DetailStudent(models.Model):
    studentID = models.CharField(max_length=20)
    firstName = models.CharField(max_length=30)
    lastName = models.CharField(max_length=30)
    section = models.CharField(max_length=10)
    teacherName = models.CharField(max_length=30)
    labScore = models.CharField(max_length=20)
    midScore = models.CharField(max_length=20)
    finalScore = models.CharField(max_length=20)
    totalScore = models.CharField(max_length=20)
    gradeScore = models.CharField(max_length=20)


class ReportStudent(models.Model):
    studentID = models.CharField(max_length=20)
    firstName = models.CharField(max_length=30)
    lastName = models.CharField(max_length=30)
    totalScore = models.CharField(max_length=20)
    gradeScore = models.CharField(max_length=20)
    section = models.CharField(max_length=10)


class History(models.Model):
    dateHistory = models.DateField()
    historyDetail = models.CharField(max_length=300)


class UploadFiles(models.Model):
    name = models.CharField(max_length=50)
    files = models.FileField(upload_to='uplaods')
    upload_date = models.DateTimeField(auto_now_add=True)

    def __unicode__(self):
        return self.name
